package com.blog.common.newclass.dostringabs;

import com.blog.common.newclass.inteface.DoStr;

/**
 * 装饰者父类：加密
 */
public class DoEntryAbs implements DoStr {
    private DoStr doStr;

    public DoEntryAbs(DoStr doStr) {
        this.doStr = doStr;
    }
    @Override
    public String getStr() throws Exception {
        return this.doStr.getStr();
    }

    @Override
    public int cost() {
        return this.doStr.cost();
    }

}
